/*
 Navicat Premium Data Transfer

 Source Server         : 仲法网
 Source Server Type    : MySQL
 Source Server Version : 50728
 Source Host           : app.zzzczfw.com:3306
 Source Schema         : vast

 Target Server Type    : MySQL
 Target Server Version : 50728
 File Encoding         : 65001

 Date: 26/05/2021 23:03:40
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for arbitration_case
-- ----------------------------
DROP TABLE IF EXISTS `arbitration_case`;
CREATE TABLE `arbitration_case` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `company_id` bigint(20) DEFAULT NULL COMMENT '案件所属公司',
  `project_id` bigint(20) DEFAULT NULL COMMENT '内部项目ID（arbitration_project）',
  `type` int(2) DEFAULT '1' COMMENT '案件类型：1贸仲湖北分会',
  `contract_id` bigint(20) DEFAULT NULL COMMENT '案件合同id',
  `contract_no` varchar(30) DEFAULT NULL COMMENT '合同编号',
  `contract_name` varchar(200) DEFAULT NULL COMMENT '案件合同名称',
  `case_id` bigint(20) DEFAULT NULL COMMENT '案件外部对接id',
  `status` varchar(10) DEFAULT NULL COMMENT '案件状态',
  `amount` double(12,2) DEFAULT NULL COMMENT '争议金额',
  `is_dispute` int(2) DEFAULT NULL COMMENT '案件双方发生争议 1.发生了争议 2.未发生争议',
  `create_by` bigint(255) DEFAULT NULL COMMENT '创建者',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `valid` int(1) DEFAULT '1' COMMENT '逻辑删除 0-删除, 默认-1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8 COMMENT='仲裁案件表';

-- ----------------------------
-- Records of arbitration_case
-- ----------------------------
BEGIN;
INSERT INTO `arbitration_case` VALUES (31, NULL, 51, 1, 145, 'ZFW-HB-WH-2021000003', '11111', 607, '6', NULL, 1, NULL, '2021-05-22 16:38:27', NULL, '2021-05-19 23:41:56', 1);
INSERT INTO `arbitration_case` VALUES (32, 6, 51, 1, 145, 'ZFW-HB-WH-2021000003', '11111', 611, '6', 1234.00, 1, 1, '2021-05-22 16:07:08', NULL, '2021-05-23 23:08:09', 1);
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
